module lfsr(
	input CLOCK_50,
	input key3,
	input [9:0]seed,
	output reg [9:0]data
);
//tap
wire feedback1 = data[9]^data[1];
//shifter
always@(posedge CLOCK_50 or posedge key3)
begin
	if(key3==1)
	begin
		data<=seed;
	end
	else
	begin
			data<={data[8:0],feedback1};
	end
end
endmodule
	